package com.example.demo.day.config.learn.design.factory.x1;

public class FactoryTest {

    public static void main(String[] args) {
        SuvCarFactory factory = new SuvCarFactory();

        SuvCar redSUV = factory.create(SuvCarFactory.RED);
        SuvCar greenSUV = factory.create(SuvCarFactory.GREEN);
        SuvCar blueSUV = factory.create(SuvCarFactory.BLUE);

        redSUV.run();
        greenSUV.run();
        blueSUV.run();
    }
}
